package cn.efunbox.afw.core.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * add by tomas 2017-05-22
 * 键值对 转 map
 */
public class Maper{
    public Maper() {
    }
    public static   <K, V> Map<K, V> of() {
      return new HashMap();
    }

    public static   <K, V> Map<K, V> of(final K k1, final V v1) {
      return new HashMap<K, V>() {
        {
          this.put(k1, v1);
        }
      };
    }
  }